package org.jie.guider.framework.mvc.biz.impl;

import javax.annotation.Resource;
import org.jie.guider.framework.mvc.biz.LoginBiz;
import org.jie.guider.framework.mvc.biz.UserBiz;
import org.jie.guider.framework.mvc.entity.UserEntity;
import org.springframework.stereotype.Service;

/**
 * @author LiJie
 */
@Service
public class DefaultLoginBiz implements LoginBiz {

    @Resource(name = "default")
    private UserBiz defUserBiz;

    @Resource(name = "admin")
    private UserBiz adminUserBiz;

    @Override
    public UserEntity login(String account, String password) {
        return adminUserBiz.getById(11L);
    }
}
